package com.y2.authprj.bean.auth.vo;

public class SysroleVo {

	//根据角色名称查找
	private String name;
	//每页的行数
	private Integer num=2;
	//第几页
	private Integer pageNum =1;
	public Integer getNum() {
		return num;
	}

	public void setNum(Integer num) {
		if(null==num||num<=0){
			num = 2;
		}
		this.num = num;
	}

	public Integer getPageNum() {
		return pageNum;
	}

	public void setPageNum(Integer pageNum) {
		if(null==pageNum||pageNum<=0){
			pageNum = 1;
		}
		this.pageNum = pageNum;
	}
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	public Integer getBegin(){
		return (pageNum-1)*num;
	}
	
}
